#! /bin/bash


sec=0
min=0
hour=0
count_sec=0

while true
do

    echo "HH:MM:SS -> $hour:$min:$sec"
    sec=`expr $sec + 1`
    count_sec=`expr $count_sec + 1`
    
    if [ $sec -lt 60 ]
    then        
        
        continue
    fi

    min=`expr $min + 1`
    sec=0

    if [ $min -lt 60 ]
    then
        
        continue
    fi 
    

    hour=`expr $hour + 1`
    min=0

    if [ $hour -lt 24 ]
    then
        continue
    fi

    hour=0
    break

done 
    echo "count_sec = $count_sec"

